<style>
    .time-range {
        margin-top: -28px;
        margin-left: 113px;
    }
    .time-range>span {
        height: 35px;
        line-height: 35px;
    }
</style>
<div class="modal-dialog" role="document" style="width:600px;">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">航班详情 - <small>{$tripRow.ticket_id} - {$tripRow.real_name}</small></h4>
        </div>
        <form class="form-horizontal" style="padding:4%;height:375px;overflow-y:auto;" id="air-form">
            <input type="hidden" name="tripId" value="{$tripId}">
            <div class="tab-content" style="top:98px;">
                <div class="tab-pane in active" id="baseTab">
                    <if condition="$rows">
                        <foreach name="rows" item="row">
                            <div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2">航班号:</label>
                                    <div class="col-sm-8">
                                        <input class="form-control" name="air_code[]" value="{$row.air_code}" placeholder="请填写航班号" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2">始发地:</label>
                                    <div class="col-sm-8">
                                        <input class="form-control" name="origin[]" value="{$row.origin}" placeholder="请填写始发地" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2">目的地:</label>
                                    <div class="col-sm-8">
                                        <input class="form-control" name="destination[]" value="{$row.destination}" placeholder="请填写目的地" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2">出发日期:</label>
                                    <div class="col-sm-8">
                                        <div class="input-group date" id="depart_date_num">
                                            <input type='text' value="<if condition="$row['depart_date']">{$row.depart_date|date="Y-m-d H:i",###}</if>" name="depart_date[]" class="form-control " data-date-format="yyyy-mm-dd hh:ii" />
                                            <div class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-sm-2">到达日期:</label>
                                    <div class="col-sm-8">
                                        <div class="input-group date" id="reach_date_num">
                                            <input type='text' value="<if condition="$row['depart_date']">{$row.reach_date|date="Y-m-d H:i",###}</if>" name="reach_date[]" class="form-control " data-date-format="yyyy-mm-dd hh:ii" />
                                            <div class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <hr />
                            </div>
                        </foreach>
                    <else/>
                        <p style="text-align: center;">暂无航班信息</p>
                    </if>
                </div>
            </div>
        </form>
        <div class="modal-footer">
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
        </div>
    </div>
</div>
<script type="text/javascript">

</script>